package util;

public class Page {
    //totalcount总行数，查询记录数
    private int totalCount;
    //totalpage总页数   考虑是否整除 总行数%pagesize==0?总行数/pagesize:总行数/pagesize+1
    private int totalPage;
    //pagesize每一页显示多少数据    固定值
    private int pageSize=10;
   //currentpage当前页
    private int currentPage;

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage() {
        this.totalPage = totalCount%pageSize==0?totalCount/pageSize:totalCount/pageSize+1;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }
//List<T> list =new ArrayList<T>(0);

}
